package com.laowang.common.utils.gt;

/**
 * @Auther laowang
 * @Date 2024/10/29
 * @Description
 */
public class tewst {

    public static void main(String[] args) {
        String publicKey = "MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOifBXCtMgzb3c8WqbZ9DHq7beZVFIEQyLgmanYG4CxK0r4NcFm6IOGbb6EE+OlwF49d5AeVffCvF9nnMojrPcsCAwEAAQ==";
        String s= "agetId=61000013184913&custId=60000007928497&ip=192.168.110.21&openid=omnyd7RE-SU3zDqxTkNpL6HHQD5w&orderNo=1851187992824119296&payWay=1&timeStamp=20241029170305&txamt=299900&version=V1.0.0";
        String sha256 = SHA256.getSHA256(s);
        String sign = RSAUtil.encrypt(publicKey, sha256);
        System.out.println(sign);
    }
}
